package com.yjd.comm.easycard.dto;

import java.io.Serializable;

import com.yjd.comm.easycard.enums.ECActiveEnum;
import com.yjd.comm.util.DateUtil;



/**
 * <b>description</b>：易借卡管理列表<br>
 * <b>time</b>：2015-4-4下午4:05:57 <br>
 * <b>author</b>： SongJian
 */
public class EasycardPageItemDTO implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Long base_id;//基础信息标识
	
	private Long easycard_index;//易借卡标识
	
	private String yjd_account;//易借卡绑定的 医界贷账户
	
	private String easycard_realname;
	private String easycard_phone;
	private String easycard_identity_id;
	private String easycard_home_address;
	private String easycard_id;//易借卡 卡号
	private Integer is_activate;//是否激活
	private Integer borrowed_times;//累计借款次数
	private Double borrowed_money;//累计借款
	private Long add_time;
	private Long update_time;
	private Long retire_time;//易借卡失效时间
	
	private Integer credit_level;//信用等级
	private Double credit_money;//信用额度
	private Integer islock;//是否锁定
	
	private Long easycard_basedata_id;
	
	private String add_time_str;
	private String update_time_str;
	private String retire_time_str;
	
	private String activate;
	private String credit_level_name;//信用等级
	
	
	public Long getEasycard_index() {
		return easycard_index;
	}
	public void setEasycard_index(Long easycard_index) {
		this.easycard_index = easycard_index;
	}
	public String getEasycard_realname() {
		return easycard_realname;
	}
	public void setEasycard_realname(String easycard_realname) {
		this.easycard_realname = easycard_realname;
	}
	public String getEasycard_phone() {
		return easycard_phone;
	}
	public void setEasycard_phone(String easycard_phone) {
		this.easycard_phone = easycard_phone;
	}
	public String getEasycard_identity_id() {
		return easycard_identity_id;
	}
	public void setEasycard_identity_id(String easycard_identity_id) {
		this.easycard_identity_id = easycard_identity_id;
	}
	public String getEasycard_home_address() {
		return easycard_home_address;
	}
	public void setEasycard_home_address(String easycard_home_address) {
		this.easycard_home_address = easycard_home_address;
	}
	public String getEasycard_id() {
		return easycard_id;
	}
	public void setEasycard_id(String easycard_id) {
		this.easycard_id = easycard_id;
	}
	public Integer getIs_activate() {
		return is_activate;
	}
	public void setIs_activate(Integer is_activate) {
		this.is_activate = is_activate;
	}
	public Long getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Long add_time) {
		this.add_time = add_time;
	}
	public Long getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Long update_time) {
		this.update_time = update_time;
	}
	public String getAdd_time_str() {
		if(getAdd_time()!=null){
			return DateUtil.format(DateUtil.timestampToDate(getAdd_time()),
					DateUtil.PATTERN_yyyy_MM_dd_HH_mm_ss);
		}
		return add_time_str;
	}
	public void setAdd_time_str(String add_time_str) {
		this.add_time_str = add_time_str;
	}
	public String getUpdate_time_str() {
		if(getUpdate_time()!=null){
				return DateUtil.format(DateUtil.timestampToDate(getUpdate_time()),
						DateUtil.PATTERN_yyyy_MM_dd_HH_mm_ss);
		}
		return update_time_str;
	}
	public void setUpdate_time_str(String update_time_str) {
		this.update_time_str = update_time_str;
	}
	public Long getRetire_time() {
		return retire_time;
	}
	public void setRetire_time(Long retire_time) {
		this.retire_time = retire_time;
	}
	public String getRetire_time_str() {
		if(getRetire_time()!=null){
			return DateUtil.format(DateUtil.timestampToDate(getRetire_time()),
					DateUtil.PATTERN_yyyy_MM_dd_HH_mm_ss);
	}
		return retire_time_str;
	}
	public void setRetire_time_str(String retire_time_str) {
		this.retire_time_str = retire_time_str;
	}
	public Integer getBorrowed_times() {
		return borrowed_times;
	}
	public void setBorrowed_times(Integer borrowed_times) {
		this.borrowed_times = borrowed_times;
	}
	public Integer getCredit_level() {
		return credit_level;
	}
	public void setCredit_level(Integer credit_level) {
		this.credit_level = credit_level;
	}
	public Double getCredit_money() {
		return credit_money;
	}
	public void setCredit_money(Double credit_money) {
		this.credit_money = credit_money;
	}
	public Integer getIslock() {
		return islock;
	}
	public void setIslock(Integer islock) {
		this.islock = islock;
	}
	public String getActivate() {
		return ECActiveEnum.getDesc(getIs_activate());
	}
	public void setActivate(String activate) {
		this.activate = activate;
	}
	public String getYjd_account() {
		return yjd_account;
	}
	public void setYjd_account(String yjd_account) {
		this.yjd_account = yjd_account;
	}
	public Double getBorrowed_money() {
		return borrowed_money;
	}
	public void setBorrowed_money(Double borrowed_money) {
		this.borrowed_money = borrowed_money;
	}
	public Long getBase_id() {
		return base_id;
	}
	public void setBase_id(Long base_id) {
		this.base_id = base_id;
	}
	public String getCredit_level_name() {
		return credit_level_name;
	}
	public void setCredit_level_name(String credit_level_name) {
		this.credit_level_name = credit_level_name;
	}
	public Long getEasycard_basedata_id() {
		return easycard_basedata_id;
	}
	public void setEasycard_basedata_id(Long easycard_basedata_id) {
		this.easycard_basedata_id = easycard_basedata_id;
	}
	
	
}

